package com.jianyun.jyzs.qrcode;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.jianyun.jyzs.R;
import com.jianyun.jyzs.qrcode.barcodescanner.CaptureManager;


/**
 * Created by AMing on 17/8/7.
 * Company RongCloud
 */
public class QRCodeResultActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.rce_activity_qrcode_result);
        TextView resultText = (TextView) findViewById(R.id.qr_result_txt);
        String resultString = getIntent().getStringExtra(CaptureManager.QR_RESULT);
        resultText.setText(resultString);
        findViewById(R.id.imgbtn_nav_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

}
